package com.ndp.fb.enums.ec;

/**
 * Created by hexin on 2016/5/25.
 */
public enum EcTemplateMaterielRunStatus {
    NotUsed(0),
    Running(1),
    Parsed(2),
    Stopped(3);

    private int type;

    EcTemplateMaterielRunStatus(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    /**
     * EcTemplateMaterielRunStatus
     *
     * @param type type
     * @return CheckActive
     */
    public static EcTemplateMaterielRunStatus getAdCreativeType(int type) {
        for (EcTemplateMaterielRunStatus c : EcTemplateMaterielRunStatus.values()) {
            if (c.type == type) {
                return c;
            }
        }
        return null;
    }
}
